import request from '@/utils/request'
import { getToken } from "@/utils/auth";
// 查询辅助报表列表
export function listAssist(query) {
  return request({
    url: '/carbonEmission/assist/list',
    method: 'get',
    params: query
  })
}

// 查询辅助报表列表(分页)
export function pageAssist(query) {
  return request({
    url: '/carbonEmission/assist/page',
    method: 'get',
    params: query
  })
}

// 查询辅助报表详细
export function getAssist(id) {
  return request({
    url: '/carbonEmission/assist/get/' + id,
    method: 'get'
  })
}

// 新增辅助报表
export function addAssist(data) {
  return request({
    url: '/carbonEmission/assist/add',
    method: 'post',
    data: data
  })
}

// 修改辅助报表
export function updateAssist(data) {
  return request({
    url: '/carbonEmission/assist/edit',
    method: 'post',
    data: data
  })
}

export function updateAssistList(data) {
  return request({
    url: '/carbonEmission/assist/editList',
    method: 'post',
    data: data
  })
}

// 删除辅助报表
export function delAssist(id) {
  return request({
    url: '/carbonEmission/assist/remove/' + id,
    method: 'post'
  })
}

export function getExportHisDataList(query) {
  return request({
    url: '/carbonEmission/assist/getExportHisDataList/' + query.pageSize +'/'+query.pageNum,
    method: 'get',
    params: query
  })
}

export function delExportHisData(name) {
  return request({
    url: '/carbonEmission/assist/delExportHisData/' + name,
    method: 'post'
  })
}



